Predict the returned value
by Merrick '23
def range_checker(x):
if x < 10:
return("In range")
else:
return("Too large")
Function Call | Return Value | |||
---|---|---|---|---|
range_checker(5) | → | |||
range_checker(10) | → | |||
range_checker(1) | → | |||
range_checker(20) | → | |||
range_checker(-1) | → |
Experiment with this code on Gitpod.io